﻿using System.ComponentModel;

namespace ServiceCore.Entity.Enums
{
    public enum ResponseEnum
    {
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 30000,
        /// <summary>
        /// 失败
        /// </summary>
        [Description("失败")]
        Faile = 50000,
        /// <summary>
        /// 登录
        /// </summary>
        [Description("登录")]
        Login = 50008,
        /// <summary>
        /// 未找到
        /// </summary>
        [Description("未找到")]
        NotFind = 40004,
        /// <summary>
        /// 未授权
        /// </summary>
        [Description("未授权")]
        NotPermission = 40003,

        /// <summary>
        /// 参数错误
        /// </summary>
        [Description("参数错误")]
        InvalidParameter = 30001,

        /// <summary>
        /// 错误请求
        /// </summary>
        [Description("错误请求")]
        BadRequest = 30002,

        /// <summary>
        /// 网络错误
        /// </summary>
        [Description("网络错误")]
        NetworkError = 30003,

        /// <summary>
        /// 系统错误
        /// </summary>
        [Description("系统错误")]
        SystemError = 30004,

        /// <summary>
        /// 数据库错误
        /// </summary>
        [Description("数据库错误")]
        DatabaseError = 30005
    }
}
